package cn.usian.service.impl;

import cn.usian.dao.EmpMapper;
import cn.usian.pojo.User;
import cn.usian.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
class UserServiceImpl implements UserService {
    @Autowired
    private EmpMapper empMapper;

    public List<User> findAll() {
        return empMapper.selectList(null);
    }


    public void del(Integer id) {
        empMapper.deleteById(id);
    }
}

